//
//  WBHomeTableViewController.swift
//  Weibo
//
//  Created by 任贤斌 on 2016/11/19.
//  Copyright © 2016年 Renkey. All rights reserved.
//

import UIKit

class WBHomeTableViewController: WBBaseTableViewController {
    
        
    //设置根视图的大小
    override func viewWillLayoutSubviews() {
        super.viewWillLayoutSubviews()
        print(self.view.bounds)
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        //设置导航栏右边的item
        self.navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: #selector(push))
        
        //设置访客视图的信息
        visitorView.updateInfo(title: "关注一些人,快回到这里看看有什么惊喜", imageName: "visitordiscover_feed_image_smallicon",isHome: true)
    }
    
    @objc private func push() {
        //进入子页面
        let demo = WBDemoViewController()
        //回收tabBar
//        demo.hidesBottomBarWhenPushed = true
        self.navigationController?.pushViewController(demo, animated: true)
        
    }

    

    // MARK: - Table view data source
    override func numberOfSections(in tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 0
    }

    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 0
    }

    
}
